const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('fileAPI', {
  readText: (filename) => ipcRenderer.invoke('file:read', filename),
  writeText: (filename, content) => ipcRenderer.invoke('file:write', filename, content)
});
